<template>
  <v-overlay>
    <v-progress-circular
        indeterminate
        :color="color"
        :size="size"
    ></v-progress-circular>
    <v-card-text class="text-center px-0" v-if="!noMsg">{{ msg }}</v-card-text>
  </v-overlay>
</template>

<script>
export default {
  name: "Loading",
  props: {
    msg: {
      type: String,
      default: '正在加载'
    },
    size: {
      type: Number,
      default: 70
    },
    color: {
      default: 'primary'
    },
    noMsg: {
      default: false
    }
  }
}
</script>

<style scoped>

</style>
